package com.woniuxy.trade.controller;

import com.woniuxy.trade.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RoomConroller {
    @Autowired
    RoomService roomService;

    /**
     * 进入竞拍倒计时
     * @param roomId
     */
    @GetMapping("/room/countdown")
    public void countdown(@RequestParam int roomId){
        roomService.countdown(roomId);
    }
}
